/*
 * assert.cpp
 *
 *  Created on: 2024年9月5日
 *      Author: nwz
 */

#include <basic_header.h>
#include <wx/wx.h>

void my_assert(const char *file, int line, const char *func, const char *con) {
	char buf[200];
	snprintf(buf, sizeof(buf), "%s %d %s %s", file, line, func, con);
	auto dial = new wxMessageDialog(NULL, buf, wxT("ASSERT"), wxOK);
	dial->ShowModal();
	delete dial;
}
